/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - SexException
 * <p>Powered by webrx On 2022-09-16 14:39:35
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class SexException extends Exception {
    private String message;

    public SexException() {
        super("性别设置异常，必须设置为男或女");
        this.setMessage("性别设置异常，必须设置为男或女");
    }


    public SexException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
